<template>
  <zTablePlugin :tableData="dataTable" :tableColumn="dataColumn"></zTablePlugin>
</template>

<script>
import zTablePlugin from '@/components/tablePlugin'
export default {
   components: {zTablePlugin},
   data() {
      return {
        dataTable: {},
        dataColumn: [
          {label: '日期', field: 'date', width: 180},
          {label: '姓名', field: 'name', width: 180},
          {label: '地址', field: 'address'}
        ]
      };
    },
    created() {
      this.getData();
    },
    methods: {
      async getData() {
        this.$localHttp.get('../../static/json/tableData.json').then((res) => {
            console.log(res.data.data);
            console.log(typeof res.data.data);
            if ('OK' === res.statusText) {
              this.dataTable = res.data.data;
            }
          });
      }
    }
}
</script>

<style scoped>

</style>